package demolinkedlist;

public class Test {

    public static void main(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();

        /*myLinkedList.addFirst(1);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);
        myLinkedList.addFirst(4);*/
        //myLinkedList.display();
        //myLinkedList.addLast(1);
        //myLinkedList.addLast(2);
        //myLinkedList.addLast(3);
        myLinkedList.addLast(4);
        myLinkedList.addLast(4);
        myLinkedList.addLast(4);
        myLinkedList.addLast(4);

        //myLinkedList.display();
        //myLinkedList.addIndex(2,88);
        //myLinkedList.display();
        //myLinkedList.remove(4);
        myLinkedList.removeAllKey(4);
        //myLinkedList.clear();
        myLinkedList.display();
    }
}
